package cn.whx.hrm.feign;

import cn.whx.hrm.domain.LoginUser;
import cn.whx.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "AUTH-SERVER",fallbackFactory = LoginUserFallbackFactory.class)
@RequestMapping("/loginUser")
public interface LoginUserFeignClient {
    @PutMapping
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
